import strategy.interfaces.CouponPricingStrategy;
import use_case.processRental.Checkout;
import junit.framework.TestCase;


public class CouponPricingStrategyTest extends TestCase {

	private CouponPricingStrategy coupon;
	private Checkout cart;
	protected void setUp(){
		coupon = new CouponPricingStrategy();
		cart = new Checkout();
	}
	
	protected void tearDown(){
		coupon = null;
		cart = null;
	}
	
	public void testGetDiscount(){
		setUp();
		double input = cart.getTotal();
		double expected =  input -1;
		assertEquals(expected, coupon.getDiscount(cart));
		tearDown();
	}
}
